/**
 * Copyright 2004 - 2007 Blue Bamboo International Inc. 
 *           All rights reserved.
 *
 *
 * Blue Bamboo PROPRIETARY/CONFIDENTIAL.
 *
 */

package com.bambamboo.st.http.server.netty;

import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.ChannelPipelineCoverage;
import org.jboss.netty.channel.MessageEvent;
import org.jboss.netty.handler.codec.http.DefaultHttpRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.bambamboo.st.socket.server.netty.AbstractChannelHandler;

/**
 * DOCME
 * 
 * @author tanxuqing
 * @date 2009-12-26
 * @since
 */
@ChannelPipelineCoverage("all")
public class HttpChannelHandler extends AbstractChannelHandler {

    private static final Logger logger = LoggerFactory.getLogger(HttpChannelHandler.class);

    @Override
    public void messageReceived(ChannelHandlerContext ctx, MessageEvent evt) throws Exception {
        DefaultHttpRequest httpRequest = (DefaultHttpRequest) evt.getMessage();
        logger.info(httpRequest.toString());
        // TODO
    }
}
